﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
using System.Windows.Forms;
//new
using MyRegester;

namespace JKZP
{
    public partial class LocalIPForm : Form
    {
        public LocalIPForm()
        {
            InitializeComponent();
        }

        private void LocalIPForm_Load(object sender, EventArgs e)
        {
            textBox_LocalIP.Text = PP.gLocalIP;
        }

        private void button_save_Click(object sender, EventArgs e)
        {
            if (PP.SetAppConfig("LocalIP",  textBox_LocalIP.Text) == true)
            {
                PP.gLocalIP = textBox_LocalIP.Text;
                RegMgr.m_LocalIP = PP.gLocalIP;
                RegMgr.m_RegNode = PP.gRegNode;
                PP.gSoftRegstor = RegMgr.SoftRegstered;
                toolStripStatusLabel1.Text = "保存成功";
            }
        }

        private void button_exit_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}
